package com.life.utils;

import com.life.view.AbstractAdapter;

public class ProgressIndicatorHelper
{
    AbstractAdapter theProgressAdapter = null;
    
    public ProgressIndicatorHelper(AbstractAdapter adapter)
    {
	theProgressAdapter = adapter;
    }
    
    public void updateProcess(int percent)
    {
	theProgressAdapter.set(new Integer(percent));
    }
    
    public void startIndication()
    {
	theProgressAdapter.setEnabled(true);
    }
    
    public void stopIndication()
    {
	theProgressAdapter.setEnabled(false);
	theProgressAdapter.set(new Integer(0));
    }
}
